<template>
	<view class="industryDetail">

		<rich-text class="content" :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default{
		name:"industryDetail",
		data(){
			return{
				content:'',
				id:''
			}
		},
		onLoad(query){
			this.id=query.id
		},
		mounted(){
			this.getNewsDetail(this.id)
		},
		methods:{
			async getNewsDetail(id){
				let resData= await this.$apis.getNewsDetail({id:id})
				let str = this.$util.formatRichText(resData.data.model.content)
				this.content=str.replace(/px/g,"rpx")
			}
		}
	}
</script>

<style lang="less" scoped>
</style>
